<?php

namespace App\Http\Controllers\Api;

use Illuminate\Http\Request;

class PrivilegeGiftPermissionController extends BaseController
{
    /**
     * @param Request $request
     */
    public function __construct(Request $request)
    {
        parent::__construct($request);
    }

    /**
     * 获取列表
     *
     * @return \Illuminate\Http\JsonResponse
     */
    public function listRecords(Request $request)
    {
        return $this->parseApiResult(callKKAudioApi('inner/privilege_gift_permission/listRecords', $request->all()));
    }

    /**
     * 增加
     *
     * @param Request $request
     * @return \Illuminate\Http\JsonResponse
     */
    public function add(Request $request)
    {
        return $this->parseApiResult(callKKAudioApi('inner/privilege_gift_permission/add', $request->all()));
    }

    /**
     * 删除
     *
     * @param Request $request
     * @return \Illuminate\Http\JsonResponse
     */
    public function delete(Request $request)
    {
        return $this->parseApiResult(callKKAudioApi('inner/privilege_gift_permission/delete', $request->all()));
    }

    /**
     * 获取特权礼物列表
     *
     * Created at 2021/12/4 15:06
     * @Author <yuxiang.zhu@asiainnovations.net>
     * @return \Illuminate\Http\JsonResponse
     */
    public function listPrivilegedGifts()
    {
        return $this->parseApiResult(callKKAudioApi('inner/privilege_gift_permission/listPrivilegedGifts'));
    }
}
